import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class database {
	public static void main(String[] args) {
		try {
			
			System.out.println("Registering Driver...");
			DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
			System.out.println("Driver Registered.");
			
			System.out.println("Attempting to connect...");
			Connection con = DriverManager.getConnection(
					"jdbc:oracle:thin:@localhost:1521:ug", "ora_x2f7", "a13623079");
			System.out.println("Connection Successful.");
			con.close();
			
			
			
			
			
			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			System.out.println("Error: Connection Unsuccessful");
		}
		System.out.println("Done");
		
		String[] arra = { "sdf", "dsfk" };
		
	}
}
